<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>客户属性自定义</title>
 <%@ include file="/page/include.jsp" %>
</head>
<link rel="stylesheet" type="text/css" href="${rootPath}/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
	<div class="container body">
		<div class="main_container">
			<div class="framebody" style="min-height: 100%;" role="main">
				<div class="row">
					<div class="col-md-12 col-sm-12 col-xs-12">
						<div class="x_panel">
							<div class="x_content">
								<form class="form-horizontal form-label-left" novalidate id="customerCustomFieldForm"  method="post" action="${pageContext.request.contextPath}/customerCustomField/saveOrUpdateCustomerCustomField">
									<input type="hidden"  id="id" name="id" value="${customerCustomField.id }" >
									<div class="item form-group">
										<label class="control-label form-item-label" for="fieldName"><span class="required"><font color="red">*</font></span>字段名称 : 
										</label>
										<div class="col-md-5 col-sm-5 col-xs-12">
											<input id="fieldName" name="fieldName" value="${customerCustomField.fieldName }" class="form-control col-md-3 col-xs-12"  type="text">
										</div>
									</div>
									<div class="item form-group">
										<label class="control-label form-item-label" for="fieldType"><span class="required"><font color="red">*</font></span>字段类型 : 
										</label>
										<div class="col-md-5 col-sm-5 col-xs-12">
											<select class="selectpicker form-control col-md-12" id="fieldType" name="fieldType" init-value="${customerCustomField.fieldType }"  title="请选择">
											</select>
										</div>
									</div>
									<div class="item form-group optionDiv" style="display:none;">
										<label class="control-label form-item-label" for="optionValue">选项 : 
										</label>
										<div class="col-md-5 col-sm-5 col-xs-12">
											 <input id="optionValue" value="" class="form-control col-md-3 col-xs-12"  type="text" placeholder="字段值">
										</div>
										<a id="btnAdd_optionValue" class="btn btn-info btn-sm"><i class="fa fa-plus fa-fw"></i> 添加</a>
									</div>
									<div class="item form-group optionDiv" style="display:none;">
										<label class="control-label form-item-label" for="">
										</label>
										<div class="col-md-7 col-sm-7 col-xs-12">
											<input type="hidden" id="choiceOption" value='${customerCustomField.choiceOption }' />
											<table id="optionValueTable" ></table>
										</div>
									</div>
								</form>
								<div class="ln_solid"></div>
								<div class="form-btn-content">
									<a id="btn_save" class="btn btn-primary">确定</a>
									<a id="btn_back"class="btn btn-default">返回</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript"  src="${rootPath}/js/customer/customerCustomField_form.js"></script>
</html>